/********************************************************************************
 * @file     SD82F465_it.c
 * @author   TEST TEAM
 * @version  v0
 * @date     2023.9
 * @brief    Main Interrupt Service Routines.
 *           This file provides template for all exceptions handler and
 *           peripherals interrupt service routine.
 *
 * Copyright (C) 2023  Hangzhou SDIC Microelectronics Co., Ltd
 *********************************************************************************/

/*Includes*/
#include "aky_com_include.h"

void SYS_Timer_Interrupt(void) interrupt ISRTC2 // time base  32.768 FOSC
{
    aky_timer_it_pro();
}

void SYS_UR_Interrupt(void) interrupt ISRUart
{
    aky_uart_it_callback();
}

void SYS_ADC_Interrupt(void) interrupt ISRAdc
{
    ADCF = 0;
}

void SYS_RTC_Interrupt(void) interrupt ISRTimer0
{
    aky_rtc_it_pro();
}

void SYS_TC0_Interrupt(void) interrupt ISRTC0
{
    TCF0 = 0;
    it_simula_uart_pro();
}

void SYS_TC1_Interrupt(void) interrupt ISRTC1
{
    TCF1 = 0;
}

void INT0_ISR(void) interrupt ISRInt0 // Vector @0x03
{
    // cleared int0 flag by hardware
    // IE0 = 0; // Clear INT0 flag
    // To Do...
    _nop_();
}

void INT1_ISR(void) interrupt ISRInt1 // Vector @0x03
{
    // cleared int1 flag by hardware
    // IE1 = 0; // Clear INT1 flag
    // To Do...
    _nop_();
}
